﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.TMS.AgentWallet
{
    /// <summary>
    /// 代理商钱包
    /// </summary>
    [Table("AgentWallet")]
    public class AgentWalletEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        /// <summary>
        /// 代理商钱包Id
        /// </summary>
        public long AgentWalletId { get; set; }
        /// <summary>
        /// 代理商Id
        /// </summary>
        public long AgentRecordId { get; set; }
        /// <summary>
        /// 余额
        /// </summary>
        public decimal Balance { get; set; }
        /// <summary>
        /// 支付宝授权信息
        /// </summary>
        public string AlipayAuthInfo { get; set; }
        /// <summary>
        /// 微信支付授权信息
        /// </summary>
        public string WxPayAuthInfo { get; set; }
        /// <summary>
        /// 支付密码
        /// </summary>
        public string PayPassword { get; set; }
        /// <summary>
        /// 密码错误次数
        /// </summary>
        public int PasswordErrorCount { get; set; }
        /// <summary>
        /// 冻结时间
        /// </summary>
        public DateTime? FreezeTime { get; set; }
    }
}
